package com.ruoyi.ggsearch.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ggsearch.mapper.GgSearchResultMapper;
import com.ruoyi.ggsearch.domain.GgSearchResult;
import com.ruoyi.ggsearch.service.IGgSearchResultService;

/**
 * 查询结果记录Service业务层处理
 * 
 * @author yangjin
 * @date 2023-04-07
 */
@Service
public class GgSearchResultServiceImpl implements IGgSearchResultService 
{
    @Autowired
    private GgSearchResultMapper ggSearchResultMapper;

    /**
     * 查询查询结果记录
     * 
     * @param keyId 查询结果记录主键
     * @return 查询结果记录
     */
    @Override
    public GgSearchResult selectGgSearchResultByKeyId(Long keyId)
    {
        return ggSearchResultMapper.selectGgSearchResultByKeyId(keyId);
    }

    /**
     * 查询查询结果记录列表
     * 
     * @param ggSearchResult 查询结果记录
     * @return 查询结果记录
     */
    @Override
    public List<GgSearchResult> selectGgSearchResultList(GgSearchResult ggSearchResult)
    {
        return ggSearchResultMapper.selectGgSearchResultList(ggSearchResult);
    }

    /**
     * 新增查询结果记录
     * 
     * @param ggSearchResult 查询结果记录
     * @return 结果
     */
    @Override
    public int insertGgSearchResult(GgSearchResult ggSearchResult)
    {
        return ggSearchResultMapper.insertGgSearchResult(ggSearchResult);
    }

    /**
     * 修改查询结果记录
     * 
     * @param ggSearchResult 查询结果记录
     * @return 结果
     */
    @Override
    public int updateGgSearchResult(GgSearchResult ggSearchResult)
    {
        return ggSearchResultMapper.updateGgSearchResult(ggSearchResult);
    }

    /**
     * 批量删除查询结果记录
     * 
     * @param keyIds 需要删除的查询结果记录主键
     * @return 结果
     */
    @Override
    public int deleteGgSearchResultByKeyIds(Long[] keyIds)
    {
        return ggSearchResultMapper.deleteGgSearchResultByKeyIds(keyIds);
    }

    /**
     * 删除查询结果记录信息
     * 
     * @param keyId 查询结果记录主键
     * @return 结果
     */
    @Override
    public int deleteGgSearchResultByKeyId(Long keyId)
    {
        return ggSearchResultMapper.deleteGgSearchResultByKeyId(keyId);
    }
}
